home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
wink24
/
src
/
key.h
< prev
next >
Wrap
Text File
|
1993-07-08
|
3KB
|
114 lines
extern void Cur_up();
extern void Cur_down();
extern void Cur_rit();
extern void Cur_left();
extern void Rit_word();
extern void Left_word();
extern void Cur_ltop();
extern void Cur_lbtm();
extern void Scr_up();
extern void Scr_down();
extern void PScr_up();
extern void PScr_down();
extern void BS_chr();
extern void Del_chr();
extern void Del_line();
extern void Del_rit();
extern void Del_left();
extern void Del_dmy();
extern void Undo_set();
extern void Ins_line();
extern void Cnt_dsp();
extern void Ins_sw();
extern void CR_put();
extern void TAB_put();
extern void Word_cut();
extern void Word_serch();
extern void Cmds_Q();
extern void Cmds_PF1();
extern void Cmds_PF2();
extern void Cmds_PF3();
extern void Cmds_PF4();
extern void Cmds_PF6();
extern void RSB_loop();
extern void Chng_wind();
extern void mac_save();
extern void mac_go();
#ifdef TOWNS
extern void CD_menu();
#endif
typedef struct {
unsigned key_code;
void (*key_proc)();
} KEYTBL;
#define MOVECMDS 24
static KEYTBL key_tbl[]={
{ 0x4D00,Cur_up }, { 0x1310,Cur_up },
{ 0x5000,Cur_down }, { 0x2B10,Cur_down },
{ 0x5100,Cur_rit }, { 0x2010,Cur_rit },
{ 0x4F00,Cur_left }, { 0x1F10,Cur_left },
{ 0x2110,Rit_word }, { 0x1E10,Left_word },
{ 0x5110,Rit_word }, { 0x4F10,Left_word },
{ 0x5104,Cur_lbtm }, { 0x4F04,Cur_ltop },
{ 0x5010,Scr_up }, { 0x2A10,Scr_up },
{ 0x4D10,Scr_down }, { 0x1210,Scr_down },
{ 0x5004,PScr_up }, { 0x2C10,PScr_up }, { 0x7000,PScr_up },
{ 0x4D04,PScr_down }, { 0x1410,PScr_down }, { 0x6E00,PScr_down },
{ 0x0F00,BS_chr }, { 0x0F10,BS_chr },
{ 0x0F04,BS_chr }, { 0x2310,BS_chr },
{ 0x4B00,Del_chr }, { 0x2210,Del_chr },
{ 0x4B10,Del_line }, { 0x1610,Del_line },
{ 0x6300,Del_line },
{ 0x1510,Del_left }, { 0x4B04,Del_rit },
{ 0x2D10,Del_dmy }, { 0x6400,Del_dmy },
{ 0x1710,Undo_set }, { 0x6500,Undo_set },
{ 0x2F10,Ins_line },
{ 0x1910,Cnt_dsp },
{ 0x1A10,Ins_sw }, { 0x4800,Ins_sw },
{ 0x1D00,CR_put }, { 0x4500,CR_put },
{ 0x1000,TAB_put }, { 0x1004,TAB_put },
{ 0x1010,TAB_put }, { 0x1810,TAB_put },
{ 0x2610,Word_cut }, { 0x3010,Word_serch },
{ 0x6900,mac_save }, { 0x5B00,mac_go },
{ 0x1110,Cmds_Q },
{ 0x0100,Cmds_PF1 }, { 0x5D00,Cmds_PF1 },
{ 0x1510,Cmds_PF2 }, { 0x5E00,Cmds_PF2 },
{ 0x5F00,Cmds_PF3 },
{ 0x6000,Cmds_PF4 },
{ 0x2410,Cmds_PF6 }, { 0x6200,Cmds_PF6 },
{ 0x6600,RSB_loop }, { 0x4E00,Chng_wind },
#ifdef TOWNS
{ 0x6100,CD_menu },
#endif
{ 0x0000,Cmds_PF1 } };